#encoding: utf-8
from pathlib import  Path
import  platform
def isWindowsSystem():
    return  'Windows'  in  platform.system()
        
def isLinuxSystem():
    return  'Linux'  in  platform.system() 

if isWindowsSystem():
    base_dir = Path("D:\WORKSPACE\cwCapsNetClassifer")
    sougouCS_dir = r"D:\WORKSPACE\1-dataset\sougouCS"
else:
    base_dir = Path("/home/stu/LRR/cw-caps-net-classifer")
    sougouCS_dir = r"D:\WORKSPACE\1-dataset\sougouCS" # 这个文件只在win10上有

datasetDir = Path("/home/stu/Documents/dataset/sougo/process_SougoCS")
thu_data = base_dir / "dataset/cnews-LSTM"
processed_dir = base_dir / "output/processed"
baidu_stopword =  base_dir / 'res/baidu_stopwords.txt'
pre_train_dir = base_dir / "output/pre_w2c"



MAX_VOCAB_SIZE = 10000
UNK = 'UNK'
PAD = 'PAD'
PAD_token = 0  # Used for padding short sentences
SOS_token = 1  # Start-of-sentence token
EOS_token = 2  # End-of-sentence token
UNK_token = 3

label_dict = {
    "汽车":0,
    "财经":1,
    "it":2,
    "健康":3,
    "旅游":4,
    "教育":5,
    "军事":6,
    "文化":7,
    "娱乐":8,
    "时尚":9,
    "房产":10
}

label_dict2 ={
    "auto": 0,
    "business":1,
    "it":2,
    "health":3,
    "travel":4,
    "learning":5,
    "mil.news":6,
    "cul":7,
    "yule":8,
    "sports":9
}

class_name = {
    "auto":"汽车",
    "business":"财经",
    "it":"it",
    "health":"健康",
    "travel":"旅游",
    "learning":"教育",
    "mil.news":"军事",
    "cul":"文化",
    "yule":"娱乐",
    "sports":"体育"
}